using System;
using System.Collections;
using System.Text;
using PetShop.Infrastructure.Gateways;
using PetShop.Domain.Model;
using System.Collections.Generic;

namespace PetShop.Domain.Services
{
    public class ItemServices
    {

        private readonly ItemGateway _gateway;

        public ItemServices()
        {
            _gateway = new ItemGateway();
        }

     
        public IEnumerable<ItemEntity> GetItemsByProduct(string productId)
        {
            return _gateway.GetItemsByProduct(productId);
        }

        public ItemEntity GetItemInfoByID(string itemId)
        {
            ItemEntity boGetItem = _gateway.GetItemByID(itemId);
            return boGetItem;
        }



    }
}
